package com.ctshk.rpc.goods.mapper;

import com.ctshk.rpc.goods.base.CustomBaseMapper;
import com.ctshk.rpc.goods.entity.RegionalFreight;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 地区运费表 Mapper 接口
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-09
 */
public interface RegionalFreightMapper extends CustomBaseMapper<RegionalFreight> {

	@Select("SELECT t.* FROM `ctshk-goods`.t_regional_freight t WHERE t.is_deleted = 0 AND t.template_id = #{templateId}")
	List<RegionalFreight> findBatchFreightByTemplateId(@Param("templateId") Long templateId);

}
